in secpol_tool.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
- that should be sent this iteration (unless later marked as skip);
- to skip this iteration because already dirty;
- to fixup by sending at the end if not already resent; */
- unsigned long *to_send, *to_skip, *to_fix;
+ unsigned long *to_send = NULL, *to_skip = NULL, *to_fix = NULL;
xc_shadow_control_stats_t stats;
if (pfn_type != NULL)
free(pfn_type);
+ if (pfn_batch != NULL)
+ free(pfn_batch);
+
+ if (to_send != NULL)
+ free(to_send);
+
+ if (to_fix != NULL)
+ free(to_fix);
+
+ if (to_skip != NULL)
+ free(to_skip);
+
DPRINTF("Save exit rc=%d\n",rc);
return !!rc;
}
int main(int argc, char **argv)
{
- int acm_cmd_fd, ret;
+ int acm_cmd_fd, ret = 0;
if (argc < 2)
usage(argv[0]);